package com.eliza.lifecycle

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.eliza.lifecycle.activity.LifecycleEventActivity
import com.eliza.lifecycle.activity.ObserverActivity
import com.eliza.lifecycle.activity.OldActivity
import com.eliza.lifecycle.activity.ServiceActivity

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        findViewById<Button>(R.id.main_to_old).setOnClickListener {
            startActivity(Intent(this, OldActivity::class.java))
        }
        findViewById<Button>(R.id.main_to_Dlc).setOnClickListener {
            startActivity(Intent(this, ObserverActivity::class.java))
        }
        findViewById<Button>(R.id.main_to_le).setOnClickListener {
            startActivity(Intent(this, LifecycleEventActivity::class.java))
        }
        findViewById<Button>(R.id.main_to_myService).setOnClickListener {
            startActivity(Intent(this, ServiceActivity::class.java))
        }


    }

}